package com.sopaths.crawler;

import org.jsoup.nodes.Document;

import com.sopaths.crawler.tasks.CrawlerTask;
import com.sopaths.crawler.tasks.SummaryCrawlerTask;


public abstract class SummaryCrawler extends AbstractCrawler {

	@Override
	protected String assembleURL(CrawlerTask<?> task) {
		SummaryCrawlerTask innerTask = (SummaryCrawlerTask) task;
		return assembleSummaryUrl(innerTask);
	}

	protected String assembleSummaryUrl(SummaryCrawlerTask task) {
		return "";
	}

	@Override
	protected void assembleTaskResult(CrawlerTask<?> task, Document document) {
		SummaryCrawlerTask innerTask = (SummaryCrawlerTask) task;
		assembleSummaryTaskResult(innerTask, document);
	}

	protected void assembleSummaryTaskResult(SummaryCrawlerTask task, Document document) {

	}
}
